import os
import re
import importlib


def get_a_function():
    a_func = os.walk("biz_code/a")
    func_map = {}
    file_list = []

    for _, _, file_list in a_func:
        file_list = file_list
        break
    for i in file_list:
        func_name = i[:-3]
        func_act = re.search(r"\d+", i)[0]
        import_func = importlib.import_module("biz_code.a." + func_name)
        func_map[func_act] = import_func.function
    return func_map


if __name__ == '__main__':
    get_a_function()
